package creation.factory.simaple2;

public class SimpleFactory {
    static Pizza getPizza(String name){
        Pizza pizza = null;
        switch (name){
            case "chess":
                pizza = new ChessPizza();
                break;
            case "greek":
                pizza = new GreekPizza();
                break;
        }
        return pizza;
    }
}
